/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package mnstudent.datatranferobject;

import java.util.Objects;

/**
 *
 * @author Administrator
 */
public class OrderSemesterDTO {

    private String m_OrderSemesterID;
    private String m_NameOfOrderSemester;

    public OrderSemesterDTO() {
        m_OrderSemesterID = "";
        m_NameOfOrderSemester = "";
    }

    public OrderSemesterDTO(String OrderSemesterID, String NameOfOrderSemester) {
        m_OrderSemesterID = OrderSemesterID;
        m_NameOfOrderSemester = NameOfOrderSemester;
    }

    public String getM_OrderSemesterID() {
        return m_OrderSemesterID;
    }

    public void setM_OrderSemesterID(String m_OrderSemesterID) {
        this.m_OrderSemesterID = m_OrderSemesterID;
    }

    public String getM_NameOfOrderSemester() {
        return m_NameOfOrderSemester;
    }

    public void setM_NameOfOrderSemester(String m_NameOfOrderSemester) {
        this.m_NameOfOrderSemester = m_NameOfOrderSemester;
    }

    @Override
    public String toString() {
        return m_NameOfOrderSemester;
    }
    
    @Override
    public int hashCode() {
        int hash = 5;
        hash = 89 * hash + Objects.hashCode(this.m_OrderSemesterID);
        hash = 89 * hash + Objects.hashCode(this.m_NameOfOrderSemester);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final OrderSemesterDTO other = (OrderSemesterDTO) obj;
        if (!Objects.equals(this.m_OrderSemesterID, other.m_OrderSemesterID)) {
            return false;
        }
        if (!Objects.equals(this.m_NameOfOrderSemester, other.m_NameOfOrderSemester)) {
            return false;
        }
        return true;
    }
}
